import request from '@/router/axios'

export function fetchHisManufacturerList(query) {
  return request({
    url: '/his/hismanufacturer/page',
    method: 'get',
    params: query
  })
}

export function addHisManufacturerObj(obj) {
  return request({
    url: '/his/hismanufacturer',
    method: 'post',
    data: obj
  })
}

export function getHisManufacturerObj(id) {
  return request({
    url: '/his/hismanufacturer/' + id,
    method: 'get'
  })
}

export function delHisManufacturerObj(id) {
  return request({
    url: '/his/hismanufacturer/' + id,
    method: 'delete'
  })
}

export function putHisManufacturerObj(obj) {
  return request({
    url: '/his/hismanufacturer',
    method: 'put',
    data: obj
  })
}
